<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/4/27
 * Time: 14:59
 */

namespace common\sources\write\peppercashlog;

use Yii;

class BuyPepperCashLogAccess implements IBuyPepperCashLogAccess
{
	//
	public function addBuyPepperCashLog($data) {
		return Yii::$app->db->createCommand()->insert('buy_pepper_cash_log', [
			'buy_id'        => $data['buy_id'],
			'serial_num'    => $data['serial_num'],
			'money'         => $data['money'],
			'arrival_money' => $data['arrival_money'],
			'account_num'   => $data['account_num'],
			'username'      => $data['username'],
			'status'        => $data['status'],
			'remark'        => $data['remark'],
			'operator'      => $data['operator'],
			'create_time'   => time(),
		])->execute();
	}
}